//
//  ReadListViewCell.m
//  WYnewsss
//
//  Created by lanou on 16/4/18.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "ReadListViewCell.h"
#import "ReadListModel.h"
#import <UIImageView+WebCache.h>
@implementation ReadListViewCell
-(void)setDataWithModel:(ReadListModel *)model{
    self.titleLabel.text = model.title;
    [_imgImageView sd_setImageWithURL:[NSURL URLWithString:model.img]];
    _button.layer.cornerRadius=8;
    self.sourceLabel.text =model.source;
    if (model.img.length==0) {
        self.distance.constant=0;
    }else{
        self.distance.constant = 158 ;
    }
    
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
